{extend name="./oscshop/admin/view/public/base.html" /}
{block name="content"}
<div class="page-header">
	<h1>	
		{$breadcrumb1}
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			{$breadcrumb2}
		</small>
	</h1>
</div>

	
<table class="table table-striped table-bordered table-hover search-form">
	<thead>
		
		<th><input name="user_name" type="text" placeholder="输入会员手机号码" value="{:input('param.user_name')}" /></th>		
		
		<th>
			<a class="btn btn-primary" href="javascript:;" id="search" url="{:url('rang/index')}">查询</a>
					<th>
		</th>
	</thead>
</table>	
	
<div class="row">
	<div class="col-xs-12">	
		<div class="table-responsive">
			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
					    <th>编号</th>											
						<th>用户</th>
						<th>姓名</th>
						<th>交易账号</th>
						<th>交易副账号</th>
						<th>当前状态</th> 
						<th>当前轮数</th>
						<th>当前总次数</th>	
						<th>交易所</th>	
						
						<th>操作</th>	
					</tr>
				</thead>
				<tbody>
						{volist name="list" id="v" empty="$empty"}
						<tr>						
							<td>{$v.id}</td>
							<td>{$v.username}</td>
							<td>{$v.id_name}</td>
							<td>
							{$v.trade_id}
							</td>
							<td>
								{$v.sub_trade_id}
							</td>
							<td>
								异常终审
							</td>
							<td>
								第{$v.rang-1}轮
								
							</td>		
							<td>
								总第{$v.total_time}次
								
							</td>
							<td>

							{volist name="exchange" id="p" empty="$exchange"}
                  			   {if condition="$p.id eq $v.exchange_id"}
                  			       {$p.name}
                  			   {/if}            
                  			{/volist}
							</td>																			
													
							


							<td>
								<a class="btn btn-primary" href="/admin/exception/admin_apply?id={$v.id}">审批操作</a>
							</td>

						</tr>
						{/volist}	
						
						<tr>
							<td colspan="20" class="page">{$list->render()}</td>
						</tr>
				</tbody>
				
			</table>
		</div>
	</div>
</div>
{/block}
{block name="javascript"}
<script>	
$(function(){
   $("#search").click(function () {
        var url = $(this).attr('url');
        var query = $('.search-form').find('input,select').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
        query = query.replace(/^&/g, '');
        if (url.indexOf('?') > 0) {
            url += '&' + query;
        } else {
            url += '?' + query;
        }
        window.location.href = url;
    });	
});
</script>
{/block}